import Vue from 'vue'
import Vuex from 'vuex'
import home from './modules/home'
Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    name: '小明',
    age: '18',
    yanzhengmas:'',
    telnumber:'',
    // path:'/shouye',
    token:null,
    status:null
  },
  getters: {},
  mutations: {
    /** 设置当前路径 */
    // setPath(state, value) {
    //   state.path = value
    // },
    settoken(state,value){
      state.token=value
    },
    setstatus(state,value){
      state.status=value
    }
  },
  actions: {},
  modules: {
    home
  }
})
